﻿@model IEnumerable<Project.Domain.Entities.Announcement> 
@using Framework.Util.Helpers;
@using Project.Resource.Home;
@{    
    var culture = "";
    if (Session["Culture"] != null && Session["Culture"].ToString().Equals("vi-VN"))
    {
        culture = "vi-VN";
    }
}
<div class="title grey headerAll" style="height: 25px; padding-left:5px; width:437px; font-size: 14px; font-weight: bold; color: #01B3F1; text-align: left; padding-top: 9px;" >    
    @MenuResource.News
</div> 
<div id="match_inplay_content">
    <table id="match" class="ui-widget ui-widget-content">
        <thead>
            <tr class="ui-widget-header ">
                <th style="width:100px;">Time</th>
                <th style="width:322px; text-align:center;">Content</th>
            </tr>
        </thead>
        <tbody>
            @foreach (var item in Model)
            {
                <tr>
                    <td style="color: #426CAA !important;">Admin: @string.Format("{0:dd/MM}",item.CreatedTime)</td>
                        <td style="font-size:11px; color:#426CAA !important; text-align:left; padding:3px; font-family:Tahoma,Geneva,Arial,sans-serif;">                        
                        @switch (culture)
                        {
                            case "vi-VN":
                                {
                                    <text>@Html.Raw(Html.Truncate(item.Content, 100))</text>
                                    
                                    break;
                                }
                            default:
                                {
                                    <text>@Html.Raw(Html.Truncate(item.ContentEn, 100))</text>
                                    break;
                                }
                        }
                    </td>
                </tr>                             
            }            
        </tbody>
    </table>
</div>


